package com.oa.pm.service;

import com.joneying.common.web.response.Resp;
import com.oa.core.PageResult;
import com.oa.core.exception.BusinessException;
import com.oa.core.exception.DataIsEmptyException;
import com.oa.pm.dto.SkillUpgradTrainingDTO;
import com.oa.pm.dto.SkillUpgradTrainingParamDTO;
import com.oa.pm.entity.SkillUpgradTraining;
import com.baomidou.mybatisplus.service.IService;
import com.oa.pm.vo.SkillUpgradTrainingDetailsVO;
import com.oa.pm.vo.SkillUpgradTrainingListVO;
import io.swagger.annotations.ApiParam;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 技能提升培训表 服务类
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface ISkillUpgradTrainingService extends IService<SkillUpgradTraining> {
    /**
     * 自定义分页
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResult<SkillUpgradTraining> findList(Integer pageNum, Integer pageSize);

    /**
    * 根据id查询
    */
    SkillUpgradTrainingDetailsVO findSkillUpgradTrainingById(String id);

    /**
     * 查询申请培训审核记录
     * @param skillUpgradTrainingParamDTO
     * @return
     */
    PageResult<SkillUpgradTrainingListVO> findSkillUpgradTrainingList(SkillUpgradTrainingParamDTO skillUpgradTrainingParamDTO);

    Resp addSkillUpgradTraining(SkillUpgradTrainingDTO skillUpgradTrainingDTO) throws BusinessException, DataIsEmptyException;

    void export(SkillUpgradTrainingParamDTO skillUpgradTrainingParamDTO, HttpServletResponse response);
}
